import pickle as pickle

def print_pkl(pkl_path):
    fr = open(f'{pkl_path}')    #open的参数是pkl文件的路径
    inf = pickle.load(fr)       #读取pkl文件的内容
    print(inf)
    fr.close()                       #关闭文件

if __name__ == '__main__':
    voc_pkl = "work_dirs/libra_faster_rcnn_r101_fpn_1x_voc/results.pkl"
    print_pkl(voc_pkl)


